package com.star.spring.my.service.controller;

import com.star.spring.my.service.entity.AlertEntity;
import com.star.spring.my.service.mapper.AlertMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName AlertController
 * @Author star
 * @Date 2024/1/10 17:29
 */

@RestController
@RequestMapping("/alert")
public class AlertController {

    @Autowired
    private AlertMapper alertMapper;

    @PostMapping
    public Integer save(AlertEntity entity) {

        return alertMapper.insert(entity);

    }
}
